import request from '@/utils/request.js'
const PATH = '/common/'

// 上传文件
export const uploadFile = (data) => request.post(PATH + 'upload', data)

// 上传文件（扩展）
export const uploadFiles = (data) => request.post(PATH + 'uploads', data)

// 获取版本信息
export const getVersion = () => request.get(PATH + 'getVersion')

// 获取版本列表
export const getVersionList = () => request.get(PATH + 'list')

// 获取所有运动信息
export const getSportAll = () => request.get(PATH + 'getSportAll')
